<?php
class playground
{
	function get_user_last_create_cell_xy($user_id)
	{
		$ret_array = array();
		
		if (empty($user_id)) return false;
		
		$result = sys::sql("select * from items where user_id='%d' order by item_id desc limit 1;",
			$user_id);
		if ($result[0])
		{
			$ret_array[0] = $result[0]['item_x'];
			$ret_array[1] = $result[0]['item_y'];
			$ret_array['x'] = $result[0]['item_x'];
			$ret_array['y'] = $result[0]['item_y'];
		}
		
		return $ret_array;
	}
}